//
//  HubuFirstViewController.h
//  iHubu2
//
//  Created by hanshui on 12-10-31.
//  Copyright (c) 2012年 hanshui. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>

@interface HubuFirstViewController : UIViewController
<UITableViewDataSource, UITableViewDelegate, UISearchBarDelegate> {
    //ad begin
	UIScrollView *adScrollView;
	UIPageControl *adPageControl;
    NSMutableArray *adViewControllers;
    NSMutableArray *adData;
    // To be used when scrolls originate from the UIPageControl
    BOOL adPageControlUsed;
	//ad end
    
    NSMutableArray *noticesData;
    NSMutableArray *newsData;
    int noticeOrNews;
}

//ad begin
@property (nonatomic, retain) IBOutlet UIScrollView *adScrollView;
@property (nonatomic, retain) IBOutlet UIPageControl *adPageControl;
@property (nonatomic, retain) NSMutableArray *adViewControllers;

@property (nonatomic, retain) IBOutlet UISearchBar *bookSearchBar;

@property (nonatomic, retain) IBOutlet UIButton *noticeButton;
@property (nonatomic, retain) IBOutlet UIButton *newsButton;
@property (nonatomic, retain) IBOutlet UITableView *newsTableView;

//广告滚动事件
- (IBAction)adChangePage:(id)sender;

-(IBAction)showClick:(id)sender;

-(IBAction)hiddenKeyboard:(id)sender;

-(IBAction)noticesAndNewsClick:(id)sender;

@end
